<!--
 * @Author: Hzt
 * @Date: 2024-01-11 17:48:43
 * @LastEditTime: 2025-02-18 10:44:31
 * @LastEditors: Hzt
 * @Description: *** 
 * @FilePath: \cty_admin\src\views\withdrawal\withdrawalList\userDetail.vue
-->
<template>
  <MyDialog
    title="收益详情"
    width="1000px"
    :visible="showDialog"
    @ok="close"
    @close="close"
  >
    <PageSearch
      :search-form-config="searchFormConfig"
      :form-data.sync="formData"
      @searchBtnClick="handleSearch"
    />
    <PageContent
      ref="pageContent"
      style="height:400px;"
      :content-table-config="contentConfig"
      :form-data="formData"
    />
  </MyDialog>
</template>

<script>
import dialogMixin from "@/mixins/dialogMixin";
import { contentConfig } from "./detailConfig/content.config";
import { searchFormConfig } from "./detailConfig/search.config";

export default {
  mixins: [dialogMixin],
  props: {
    initParams: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {
      contentConfig,
      searchFormConfig,
      formData: {
        purseId: "",
      },
    };
  },
  methods: {
    handleSearch() {
      const { purseId } = this.initParams;
      this.formData.purseId = purseId;
      this.$refs.pageContent.queryTblMain();
    },
    goBack(){
      this.initParams.cb();
    },
  },
};
</script>

<style lang="scss" scoped>
.user-detail{
  height:100%;
  display: flex;
  flex-direction: column;
  .back{
    padding-top:20px;
    padding-left:12px;
    display: flex;
    align-items: center;
    font-size:18px;
    color:#409eff;
    font-weight: 500;
    cursor: pointer;
    i{
      margin-right:4px;
      display: inline-block;
    }
  }
}
</style>
